package com.yimu.ymblog.common.domain.admin.vo.tag;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "更新标签 VO")
public class UpdateTagReqVO {

    @NotNull(message = "标签 ID 不能为空")
    private Long id;

    @NotBlank(message = "标签名称不能为空")
    @Length(min = 1, max = 10, message = "标签名称字数限制 1 ~ 10 之间")
    private String name;

}